﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ERP.Domain.Scheduling
{
    /// <summary>
    /// 班组成员表实体类
    /// </summary>
    public class TeamMember : Audit
    {
        /// <summary>
        /// 班组成员ID（主键，若数据库中是自增列，可添加自增配置）
        /// </summary>
        [Key]
        [Column("MemberId")]
        public int MemberId { get; set; }

        /// <summary>
        /// 关联班组ID（外键，关联班组表的TeamId）
        /// </summary>
        [Column("TeamId")]
        public int TeamId { get; set; }

        /// <summary>
        /// 关联员工表ID（外键，关联员工表的主键）
        /// </summary>
        [Column("Employee")]
        public int EmployeeId { get; set; }
        /// <summary>
        /// 逻辑删除标识符
        /// </summary>
        public bool? IsDelete { get; set; } = false;
    }
}
